//
//  PriceView.h
//  car
//
//  Created by chenxu on 4/7/15.
//  Copyright (c) 2015 chenxu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Order.h"

typedef NS_ENUM(NSInteger, who){
    user = 0,
    company,
};

@interface PriceView : UIView <UITableViewDelegate,UITableViewDataSource>


typedef void(^cancelOrder)();//编辑某个car
typedef void(^acceptOrder)(NSArray* insarr);  //结束编辑
typedef void(^selectcar)();
typedef void(^sendOrder)(NSArray* insarr);//商家报价

@property BOOL isshow;
@property who   who;

//用户端初始化
- (id)initWithFrame:(CGRect)frame andOrder:(Order*)order cancel:(cancelOrder)cancelblock accept:(acceptOrder)acceptblock selectcar:(selectcar)selectblock;

//商家初始化
- (id)initWithFrame:(CGRect)frame andOrder:(Order*)order send:(sendOrder)sendblock selectcar:(selectcar)selectblock;
- (void)refreshPrice;
- (void)showOrDismiss;

@end
